<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Page Tags : Ionize User Guide</title>

<style type='text/css' media='all'>@import url('../userguide.css');</style>
<link rel='stylesheet' type='text/css' media='all' href='../userguide.css' />

<script type="text/javascript" src="../nav/nav.js"></script>
<script type="text/javascript" src="../nav/prototype.lite.js"></script>
<script type="text/javascript" src="../nav/moo.fx.js"></script>
<script type="text/javascript" src="../nav/user_guide_menu.js"></script>

<meta http-equiv='expires' content='-1' />
<meta http-equiv= 'pragma' content='no-cache' />
<meta name='robots' content='all' />
<meta name='author' content='Ionize Dev Team' />
<meta name='description' content='Ionize User Guide' />

</head>
<body>

<!-- START NAVIGATION -->
<div id="nav"><div id="nav_inner"><script type="text/javascript">create_menu('../');</script></div></div>
<div id="nav2" onclick="myHeight.toggle();"><a name="top"></a><a href="javascript:void(0);"><img src="../images/nav_toggle_darker.jpg" width="154" height="43" border="0" title="Toggle Table of Contents" alt="Toggle Table of Contents" /></a></div>
<div id="masthead">
<table cellpadding="0" cellspacing="0" border="0" style="width:100%">
<tr>
<td><h1>Ionize User Guide Version 0.9.7</h1></td>
<td id="breadcrumb_right"><a href="../toc.html">Table of Contents Page</a></td>
</tr>
</table>
</div>
<!-- END NAVIGATION -->


<!-- START BREADCRUMB -->
<table cellpadding="0" cellspacing="0" border="0" style="width:100%">
<tr>
<td id="breadcrumb">
<a href="http://www.ionizecms.com/">Ionize Home</a> &nbsp;&#8250;&nbsp;
<a href="../index.html">User Guide Home</a> &nbsp;&#8250;&nbsp;
Page Tags
</td>
<td id="searchbox"><form method="get" action="http://www.google.com/search"><input type="hidden" name="as_sitesearch" id="as_sitesearch" value="ionizecms.com/user-guide" />Search User Guide&nbsp; <input type="text" class="input" style="width:200px;" name="q" id="q" size="31" maxlength="255" value="" />&nbsp;<input type="submit" class="submit" name="sa" value="Go" /></form></td>
</tr>
</table>
<!-- END BREADCRUMB -->

<br clear="all" />


<!-- START CONTENT -->
<div id="content">

<h1>Shared Tags</h1>

<p>Shared tags can be used in several context.</p>
<p>They display the same logical information.</p>
<p>For example, the <strong>title</strong> tag displays the title of an element and can be used in the page, article or media context.</p>

<pre>
&lt;html>
   &lt;body>
      
      <dfn>&lt;!-- Displays the page title (context of the page) --></dfn>
      &lt;ion:title />
      
      <dfn>&lt;!-- Loop through articles --></dfn>
      &lt;ion:articles>
         
         <dfn>&lt;!-- Displays the article title, because we loop through articles --></dfn>
         &lt;ion:title />

         <dfn>&lt;!-- Loop on pictures of each article --></dfn>
         &lt;ion:media type="picture">

            <dfn>&lt;!-- Displays the media title, because we loop through media --></dfn>
            &lt;ion:title />

         &lt;/ion:media>
      
      &lt;/ion:articles>

   &lt;/body>
</pre>



<h2>title</h2>

<p>Returns the element title.</p>
<p>Context of usage :</p>
<ul>
	<li>Page</li>
	<li>Article</li>
	<li>Media</li>
	<li>Category</li>
</ul>

<pre>
<dfn>&lt;!-- Returns the title --></dfn>
&lt;ion:title/>

<dfn>&lt;!-- Returns : &lt;h2 id="my_title_id" class="my_title_class">Your title&lt;/h2> or nothing if there is no value set for the title. --></dfn> 
&lt;ion:title tag="h1" id="my_title_id" class="my_title_class" />
</pre>

<h3>Attributes</h3>
<table cellpadding="0" cellspacing="1" border="0" style="width:100%" class="tableborder">
<tr>
	<th>Attribute</th>
	<th>Optional</th>
	<th>Values</th>
</tr>
	<td class="td">tag</td>
	<td class="td">yes</td>
	<td class="td">Puts the results into the given tag</td>
</tr>
<tr>
	<td class="td">id</td>
	<td class="td">yes</td>
	<td class="td">Adds the HTML <strong>id</strong> attributes to the produced tag.</td>
</tr>
<tr>
	<td class="td">class</td>
	<td class="td">yes</td>
	<td class="td">Adds the HTML <strong>class</strong> attributes to the produced tag.</td>
</tr>
</table>


<h2>subtitle</h2>

<p>This tag is works like the &lt;ion:title /> tag.</p>









</div>
<!-- END CONTENT -->


<div id="footer">
<p>
Previous Topic:&nbsp;&nbsp;<a href="website_tags.html">Website Tags</a>
&nbsp;&nbsp;&nbsp;&middot;&nbsp;&nbsp;
<a href="#top">Top of Page</a>&nbsp;&nbsp;&nbsp;&middot;&nbsp;&nbsp;
<a href="../index.html">User Guide Home</a>&nbsp;&nbsp;&nbsp;&middot;&nbsp;&nbsp;
Next Topic:&nbsp;&nbsp;<a href="article_tags.html">Article Tags</a>
</p>
<p><a href="http://www.ionizecms.com/">Ionize website</a></p>
</div>

</body>
</html>